package cn.lili.modules.payment.service;

import cn.lili.common.security.AuthUser;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.kit.params.WithdrawParams;
import cn.lili.modules.payment.entity.dos.UserPointsHistory;
import cn.lili.modules.payment.entity.dos.UserWallet;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author asus
* @description 针对表【li_user_points_history(会员积分记录表)】的数据库操作Service
* @createDate 2023-10-09 16:03:04
*/
public interface LiUserPointsHistoryService extends IService<UserPointsHistory> {

    ResultMessage<Page<UserPointsHistory>> pointsPage(WithdrawParams withdrawParams);

    ResultMessage<Object> withdraw(WithdrawParams withdrawParams);

    void savePoints(WithdrawParams withdrawParams, String uid, AuthUser currentUser, UserWallet userWallet);

}
